<!DOCTYPE html>
<html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="viewport" name="minimum-scale=1,maxinum-scale=1,user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit">
<meta name="apple-mobile-web-app-capable" content="no">
<head>
	<title>手机轮播图</title>
	<link rel="stylesheet" type="text/css" href="swiper/swiper-4.3.2.min.css">
	<script type="text/javascript" src="swiper/swiper-4.3.2.min.js"></script>
	<style type="text/css">
		.img-responsive{width:100%;height:auto;}
	</style>
</head>
<body>
	<div class="index_banner  layui-container" >
    <div class="swiper-container swiper1">
        <div class="swiper-wrapper">
           <div class="swiper-slide"><img src="./images/fn1.jpg" alt="" class="img-responsive"></div>
           <div class="swiper-slide"><img src="./images/fn2.jpg" alt="" class="img-responsive"></div>
           <div class="swiper-slide"><img src="./images/fn3.jpg" alt="" class="img-responsive"></div>
           <div class="swiper-slide"><img src="./images/fn4.jpg" alt="" class="img-responsive"></div>
        </div>
        <div class="swiper-button-next left_control"></div>
        <div class="swiper-button-prev right_control"></div>
        <div class="swiper-pagination"></div>
    </div>
</div>
<script type="text/javascript">
	//页面渲染
	var swiper = new Swiper('.swiper1', {
        slidesPerView: 1,
        spaceBetween: 30,
        loop: true,
        scrollbar:'.swiper-scrollbar',
        scrollbarDraggable : true ,
        scrollbarSnapOnRelease : true ,
        scrollbarHide:false,
        //分页器
        pagination: {
            el: '.swiper1 .swiper-pagination',
            clickable: true,
        },
        //使用前进后退来控制Swiper切换
        navigation: {
            nextEl: '.swiper1 .swiper-button-next',
            prevEl: '.swiper1 .swiper-button-prev',
        },
        //自动播放
        autoplay: {
            delay: 3000,//延期秒数

            stopOnLastSlide: false,
            disableOnInteraction: false,
        },
    });

</script>
</body>
</html>